const getDeviceList = (name) => {
  const temp = [
    "4G",
    "Wi-Fi",
    "蓝牙+Wi-Fi",
    "蓝牙+4G",
    "Lora+Wi-Fi",
    "Lora+4G",
  ];

  return temp.map((item) => {
    return {
      goods_name: name,
      desc: `(${item})`,
      goods_image:
        "https://www.figma.com/file/kN5ViZ7OWt7XW7MupIk2J9/image/54d663ac904600b6e513a6ebe61489a18b80d07e",
    };
  });
};

/* 温控设备列表 */
export const wenkong = [
  ...getDeviceList("HQWK-YJP-2"),
  ...getDeviceList("HQWK-SM3"),
  ...getDeviceList("HQWK-SM3-80A-380V"),
];

/* 开关列表 */
export const kaiqi = [
  ...getDeviceList("1路开关"),
  ...getDeviceList("2路开关"),
  ...getDeviceList("3路开关"),
  ...getDeviceList("4路开关"),
];

/* 时控开关 */
export const shikongkaiguan = [
  ...getDeviceList("HQSK-DL80A-220V"),
  ...getDeviceList("HQSK-DL80A-380V"),
];

/* 安防类 */
export const anfang = [
  ...getDeviceList("断电报警器HQDDBJ-1"),
  ...getDeviceList("断电报警器HQDDBJ-2"),
  ...getDeviceList("断电报警器HQDDBJ-4"),
  ...getDeviceList("断电报警器HQDDBJ-6"),
  ...getDeviceList("断电报警器HQDDBJ-8"),
];

// 压力开关
export const yali = [
  ...getDeviceList("HQ-YLKG-0.4MPa"),
  ...getDeviceList("HQ-YLKG-0.6MPa"),
  ...getDeviceList("HQ-YLKG-1MPa"),
  ...getDeviceList("HQ-YLKG-2MPa"),
  ...getDeviceList("HQ-YLKG-2.5MPa"),
  ...getDeviceList("HQ-YLKG-4MPa"),
  ...getDeviceList("HQ-YLKG-6MPa"),
  ...getDeviceList("HQ-YLKG-7.6MPa"),
  ...getDeviceList("HQ-YLKG-10MPa"),
  ...getDeviceList("HQ-YLKG-16MPa"),
];

// 单光柱液位控制器
export const danguo = [
  ...getDeviceList("HQ-YW-SMG-Y1"),
  ...getDeviceList("HQ-YW-YJP-Y2"),
];
